//
//  CLerViewController.m
//  I-want-go
//
//  Created by dllo on 15/11/7.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "CLerViewController.h"
//#import "QRCodeGenerator.h"

@interface CLerViewController ()

//@property(strong, nonatomic)UIImageView *qRimageView;

@end

@implementation CLerViewController

- (void)dealloc {
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
//    self.navigationController.navigationBar.translucent = NO;
//    
//    self.view.backgroundColor = [UIColor cyanColor];
//    
//    //文本框
//    UITextField *textFielf = [[UITextField alloc] initWithFrame:CGRectMake(20, 50, 200, 50)];
//    textFielf.backgroundColor = [UIColor cyanColor];
//    textFielf.layer.borderWidth = 1;
//    textFielf.layer.cornerRadius = 10;
//    textFielf.placeholder = @"请输入网址/文字";
//    textFielf.tag = 001;
//    textFielf.clearButtonMode = UITextFieldViewModeAlways;
//    [self.view addSubview:textFielf];
//    //按钮
//    UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(250, 50, 50, 50)];
//    button.layer.borderWidth = 1;
//    button.layer.cornerRadius = 10;
//    [button setTitle:@"生成" forState:UIControlStateNormal];
//    button.backgroundColor = [UIColor cyanColor];
//    [self.view addSubview:button];
//    [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
//    [button addTarget:self action:@selector(QRCode) forControlEvents:UIControlEventTouchUpInside];
    
}

//生成二维码
//-(void)QRCode{
//    
//    UITextField *textFielf = [self.view viewWithTag:001];
//    // 失去响应
//    
//    [textFielf resignFirstResponder];
//    
//    UIImage *img = [QRCodeGenerator qrImageForString:textFielf.text  imageSize:200];
//    UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 100, 350, 400)];
//    imgView.backgroundColor = [UIColor whiteColor];
//    imgView.image = img;
//    [self.view addSubview:imgView];
//    [imgView release];
//}
//



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
